import App from './App'

// #ifndef VUE3
import Vue from 'vue'
Vue.config.productionTip = false

import moment from 'moment'

//全局过滤器
 Vue.filter('dateFormat',date=>{
     return moment(date).format('YYYY年MM月DD日')
 })
 
 Vue.filter('dateForma',date=>{
     return moment(date).format('YYYY-MM-DD')
 })
 
 Vue.filter('dateMember',date=>{
     return moment(date).format('YYYY-MM-DD HH:mm:ss')
 })
 
 Vue.filter('time',date=>{
     return moment(date).format('HH时mm分ss秒')
 })

App.mpType = 'app'
const app = new Vue({
    ...App
})
app.$mount()
// #endif

// #ifdef VUE3
import { createSSRApp } from 'vue'
export function createApp() {
  const app = createSSRApp(App)
  return {
    app
  }
}
// #endif